package per.sunmes.cl.g.data.cards;

import per.sunmes.cl.g.actor.Card;
import per.sunmes.cl.g.actor.Zone;
import per.sunmes.cl.g.data.CardEffect;
import per.sunmes.cl.g.i.CallBack;
import per.sunmes.cl.g.screen.GameScreen;

import com.badlogic.gdx.scenes.scene2d.Group;

public class CardEffect8 implements CardEffect {
	// 基本类型
	// 占领当前区域
	@Override
	public void effect(GameScreen gameScreen, Zone selfZone, Card cardSelf) {
		selfCardMoveLandEffect(gameScreen, selfZone, cardSelf, new CallBack() {
			@Override
			public void call() {
				selfZone.setCard(cardSelf);
				gameScreen.targetPlayerDrawCard(0, cardSelf.getPlayer());
				gameScreen.targetPlayerDrawCard(0.4f, cardSelf.getPlayer());
			}
		});

		// ///
		gameScreen.delayActionExecuteNextRound(1.8f);
	}

	@Override
	public void preEffect(GameScreen gameScreen, Zone selfZone, Card cardSelf,
			Group previewGroup) {
		// preEffectCardSelfLand(gameScreen, selfZone, cardSelf, previewGroup);
	}

	@Override
	public boolean isCouldPutToZone(Zone zone) {
		return zone.getCard() == null;
	}

}
